home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Gnuplot NeXTSTEP Front End 1.1
- March 1993
-
-
-
- Launching the NeXTSTEP App
- --------------------------
- To launch the NeXTSTEP app, double click its icon in the
- Workspace File Viewer. The app will launch and will create a blank,
- untitled plot. To look at some of the sample documents, choose
- "Open..." from the Plot menu and select the sample plot(s) in the
- Samples folder. (Alternatively, if you install the app in ~/Apps,
- /LocalApps, or your dock, you may double click the sample plot(s) in
- the Workspace File Viewer. If the sample plots do not have the
- Gnuplot icon in the File Viewer, choose "Update Views" from the
- Workspace Views menu.)
-
-
- Running the Command Line Version
- --------------------------------
- To run the command line version, go to a Terminal or Stuart
- window, cd to the directory containing the executable (probably
- ~/Apps/Gnuplot.app) and type "./Gnuplot -c [gnuplot options]". Using
- -c as the first argument specifies that you want the command line
- version. The standard Gnuplot banner and copyright information will
- be displayed, and you will get a "gnuplot>" prompt.
-
- If you have files of Gnuplot commands, you may load them into
- the command line version with "./Gnuplot -c filename". You may also
- open them with the NeXTSTEP app if you give each filename a ".gnuplot"
- extension. (Note that irrelevant commands, such as set terminal, set
- output, pause, and any commands after the first plot command, will be
- ignored, and you should use full path names when specifying external
- files.)
-
-
- What the NeXTSTEP Version Can't Do
- ----------------------------------
- I initially wrote this app for myself, and I admit that the
- Gnuplot features that the app does not support are those that I rarely
- use. At this point, most features are implemented to some degree but
- still need to be extended. For example, you may now plot contours,
- but the NeXTSTEP interface does not support adjusting the number and
- spacing of contour lines.
-
- Adding such extensions would be fairly easy because they are
- supported by the underlying code, I just haven't added them to the
- interface yet. If you are impatient, feel free to tweak Gnuplot
- documents with a text editor and then reopen them in Gnuplot, thus
- using the app as a Gnuplot previewer (it can preview features that it
- cannot directly manipulate).
-
- Some of the features that are not yet included are
-
- -- adequate support for parametric plots: ranges and
- reordering of functions within a pair/triple.
-
- -- positioning of titles and axis labels
-
- -- labels that can be placed at arbitrary locations and arrows
- that can point to arbitrary locations (although I bet
- anyone with an app like Diagram will never use these two
- features)
-
- -- user-defined functions and variables
-
- -- extensive formats for user-defined tic marks
-
-
- Additionally, I'd like a few more NeXTSTEP additions:
-
- -- Allow creation/editing of raw data points within Gnuplot,
- with the option of saving the data to a text file, which
- would allow the app to...
-
- -- ... provide a service that allows the user to select
- columns of text in other apps (spreadsheets, word
- processors) and plot them with Gnuplot
-
- -- Color support
-
- -- Better graphical depiction of pairs/triples of functions
- for parametric plots in the Data Inspector
-
- -- Ability to drag data files onto the plot window instead of
- onto the Gnuplot app icon. It would make more sense and
- would cause less conflict with dock-extenders like Engage.
- I was just being lazy.
-
- -- Support NeXTSTEP 3 features, like interactive help, links,
- etc.
-
-
- Acknowledgements
- ----------------
- Although I worked on this alone, I examined and borrowed code
- and ideas from many sources:
-
- -- NeXTSTEP Examples and Mini-Examples, primarily
- CellScrollView by R. Dunbar Poor and Mai Nguyen,
- ScrollDoodScroll by Jayson Adams, and Draw by Paul Hegarty.
- Any classes or methods that I used have their origins
- documented in the code.
-
- -- Nick Strobel, whose Gnuplot terminal served as an example.
- My custom terminal is similar to his first version -- it
- creates a stream of PostScript which is used to create an
- NXImage that is composited into the plot window. His
- second version is faster and less of a memory hog, but it
- violates some "rules" about messaging Objective-C objects
- from a .c file. I'm trying to think of a clean, legal way
- around this. (By the way, Strobel's terminal is included
- with the official Gnuplot 3.3 distribution and is,
- therefore, included here if you'd like to try it.)
-
- -- Russell Lang, whose official Gnuplot PostScript terminal
- driver is the basis for my custom terminal driver. In fact,
- mine is a very slight modification of his.
-
- -- Usenet's comp.sys.next.programmer. The best source of cool
- tips on the planet.
-
-
- Don't spill anything,
- Rob
-
- davis@sonata.cc.purdue.edu
- 71302.273@compuserve.com
-
-